﻿using _2._23._2015_GroceryList.Data.Models;
using Microsoft.AspNet.Identity.EntityFramework;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _2._23._2015_GroceryList.Data
{
    public class GroceryListDbContext : IdentityDbContext<ApplicationUser>
    {
        public GroceryListDbContext()
            : base("DefaultConnection", throwIfV1Schema: false)
        {
        }

        public DbSet<GroceryItem> GroceryItems { get; set; }
        public DbSet<GroceryItemType> GroceryItemTypes { get; set; }

        public static GroceryListDbContext Create()
        {
            return new GroceryListDbContext();
        }
    }
}
